You can find here two directories with examples of databases and actions.

1. Database

Here are two samples created with Microsoft Access Wizard :
- Contact2000.mdb for Access2000
- Contact97.mdb for Access97 

They both contain a table 'Contact' with some records in it.
You can use this database and this table with fields 'FirstName',
'LastName', 'ContactID' and phone numbers fields (WorkPhone, ...).

2. Actions samples without MS-Access 

You can find here 3 examples which can be used as action command (these 
simple programs only display the arguments passed to the command) :

- action_bat.bat : Batch program
- action_vb.exe  : Visual Basic program
- action_vc.exe  : Visual C++ program

The command to enter in configuration to use the VB program as an action is:
"<path>\action_vb.exe $1 $2 $3 $4" in command configuration (where 
<path> is the path where action_vb.exe program is located).

You can find the sources of Visual Basic program in the directory
sources_vb (project "actioncmd.vbp") and the sources of Visual C++ 
program in the directory sources_vc++ (project "actioncmd.dsp").


3. Actions samples with MS-Access 

It is possible to launch an Access form to display a contact.
You can find an example of a program (named "ShowContact") which 
opens the "Contacts" form and shows the specified contact and an 
example of a program (named "CloseContact") which closes the "Contacts" 
form. The binary are in 'Action' directory. 

- ShowContact

This program uses the Access application (which is launched only if not 
already started), opens the contacts database and opens the form "Contacts" 
(this one must exist in the database). The contact identified by its key 
(ContactID) is shown. The program has the following syntax: 
ShowContact "AccessPath" "DatabasePath" ContactID 

In the configuration of the actions you can set the ShowContact program for 
the commands 'Open a Contact' and 'Show a Contact'. Specify the path and name 
of the program, the path and name of the Access application between quotes (""), 
the path and name of the database between quotes ("") and the ContactID ($4). 
The parameters must be separated by a space character. Thus the command is :
<ShowContactPath>\ShowContact.exe "<AccessPath>\MSACCESS.EXE" "<Database_path>\<database_name>.mdb" $4
Example: C:\Program Files\CTI\ShowContact.exe "C:\Program Files\Microsoft Office\Office\MSACCESS.exe" "C:\Program Files\CTI\Contact2000.mdb" $4 

- CloseContact

This program closes the form "Contacts" (this one must exist in the database). 
The program has the following syntax: CloseContact "DatabasePath" 

In the configuration of the actions you can set the CloseContact program for 
the commands 'Close a Contact'. Specify the path and name of the program and
the path and name of the database between quotes (""). Thus the command is :
<CloseContactPath>\CloseContact.exe "<Database_path>\<database_name>.mdb"
Example: C:\Program Files\CTI\CloseContact.exe "C:\Program Files\CTI\Contact2000.mdb"

- Sources 

These simple programs are written in Visual Basic and you can find the 
sources in the directory 'sources_vb\ShowContact' (project "showcmd.vbp") 
and in the directory 'sources_vb\CloseContact' (project "closecmd.vbp").
